Auto merge of #2070 - alexcrichton:test-optional, r=brson
authorbors <bors@rust-lang.org>
Fri, 30 Oct 2015 00:54:15 +0000 (00:54 +0000)
committerbors <bors@rust-lang.org>
Fri, 30 Oct 2015 00:54:15 +0000 (00:54 +0000)
commit59b73f190b9a6afc51abbcff8cb5a2b530621bde
tree546bf02fb06dc573d2afcf090315f52963d8bf4d
parente1ed9956e079a563796fb380871f4b67619f58ee
parent3332c91f983af579d56f36d6413ec0758122def8
Auto merge of #2070 - alexcrichton:test-optional, r=brson

Previously a warning was issued if both -p and --features were passed as flags,
and the rationale for this was that if --features modified the activated set of
features in the package selected by -p it would alter Cargo.lock, which is
undesirable as Cargo.lock should be stable.

This commit, however, interprets --features as changing the resolved graph of
the top-level package, and then -p is a query on that resolved graph. This way
the Cargo.lock file never changes and you're allowed to test optional
dependencies.

Closes #2083